home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
taropyon
/
guilib3
/
inc
/
dlg
/
dlg019.h
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
2KB
|
77 lines
/* :*****************************************************************
: "dlg019.h" : リスト付き・文字列入力用ダイアログ
:-----------------------------------------------------------------
: (ワイルドカード指定/選択用)
:*****************************************************************
*/
#ifndef _DLG019_H
#define _DLG019_H
#ifndef _DIALOG_H
# include <dialog.h>
#endif
#ifndef _MOUSE_H
# include <mouse.h>
#endif
#ifndef _EVENT_H
# include <event.h>
#endif
#ifndef _GST_H
# include <gst.h>
#endif
#ifndef _MENU_H
# include <menu.h>
#endif
#ifndef _SBAR_H
# include <sbar.h>
#endif
typedef struct _dlg019obj_t
{
struct _dlg019obj_t *next;
char *buf;
} DLG019OBJ_T;
typedef struct
{
DLG_T *dlg; /* ダイアログ */
EVT_T *evt; /* イベント用 */
MOSTKP_T *mosTk; /* マウス作業用 */
char *title; /* タイトル文字列 */
SBAR_T *sb; /* スクロールバー用 */
GST_T *gst; /* 文字列入力用 */
FRAME fr; /* リスト表示枠 */
int objNum; /* 項目の数 */
DLG019OBJ_T *topObj; /* 先頭ポンイタ */
EVT_T *objEvt; /* 項目選択用イベント */
int dspTop; /* 表示先頭 */
int dspXs; /* 表示最大文字数 */
int dspNum; /* 表示可能な項目数 */
int curPos; /* カーソル位置 */
COLOR colTbl[16]; /* カラーテーブル */
} DLG019_T;
#define DLG019COL_THIL(par) (par->colTbl[0])
#define DLG019COL_TSHA(par) (par->colTbl[1])
#define DLG019COL_TBAC(par) (par->colTbl[2])
#define DLG019COL_TSTR(par) (par->colTbl[3])
#define DLG019COL_SHIL(par) (par->colTbl[4])
#define DLG019COL_SSHA(par) (par->colTbl[5])
#define DLG019COL_SBAC(par) (par->colTbl[6])
#define DLG019COL_SSTR(par) (par->colTbl[7])
#define DLG019COL_BHIL(par) (par->colTbl[8])
#define DLG019COL_BSHA(par) (par->colTbl[9])
#define DLG019COL_BBAC(par) (par->colTbl[10])
#define DLG019COL_BSTR(par) (par->colTbl[11])
#define DLG019COL_DBAS(par) (par->colTbl[12])
extern COLOR Dlg019colTbl[16];
extern int DLG_019setGst( DLG_T *dlg, char *buf, size_t len, HIST_T *hist );
#endif